#ifndef PAYMENTWORKER_H
#define PAYMENTWORKER_H

#include <QObject>
#include <QTableWidgetItem>

class TableWidgetResultWorker : public QObject
{
    Q_OBJECT
public:
    explicit TableWidgetResultWorker(QTableWidgetItem *item, QList<int> *resultColumns=NULL, QObject *parent = 0);
    ~TableWidgetResultWorker();

signals:
   void     PasswordSet(QString passw);
   void     MobPhoneSet(QString phone);
public slots:
    //void    StartSocket(QObject *provider);
    void    StartJob();
    void    ShowMessage(QString message);
    void    ShowProgress(int percent);
    void    ShowResult(QString result);
    void    ShowResults(QStringList resultList);
    void    JobFinished(QString message);
    void    TakePassword(QString lable_message);
    void    TakeMobileNumber();

private slots:
    void    PasswordEntered();
    void    MobileNumberEntered();
private:
   QTableWidgetItem  *m_item;
   QList<int>         m_resultColumns;
   QLineEdit         *lineEdit;
   //QHash<QString, CreditCardProfile*> m_cards;
   //ServiceProvider m_provider;
};

#endif // PAYMENTWORKER_H
